package com.item.web.sys_user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.item.web.sys_user.entity.SysUser;

public interface SysUserService extends IService<SysUser> {
    //新增用户
    void addUser(SysUser sysUser);

    //编辑用户
    void editUser(SysUser sysUser);

    //删除用户
    void deleteUser(Long userId);

    //根据用户名查用户
    SysUser loadUser(String username);

    //根据用户Id查角色名称
    String getRoleNameByUserId(Long userId);
}
